/*
 * ============================================================================
 * = COPYRIGHT
 *          PAX Computer Technology(Shenzhen) CO., LTD PROPRIETARY INFORMATION
 *   This software is supplied under the terms of a license agreement or nondisclosure
 *   agreement with PAX Computer Technology(Shenzhen) CO., LTD and may not be copied or
 *   disclosed except in accordance with the terms in that agreement.
 *     Copyright (C) 2021-? PAX Computer Technology(Shenzhen) CO., LTD All rights reserved.
 * ============================================================================
 */

import 'package:pigeon/pigeon.dart';

@ConfigurePigeon(PigeonOptions(
  dartOut: 'lib/auto_pigeon/poslink_android.dart',
  javaOptions: JavaOptions(
    className: 'POSLinkAndroid',
    package: 'com.example.pos_link.pigeon',
  ),
  javaOut:
      './android/src/main/java/com/example/pos_link/pigeon/POSLinkAndroid.java',
))

class BluetoothDevice{
  String? name;
  String? mac;
}

class RawResponse{
  bool? isSuccess;
  String? message;
  String? response;
}

@HostApi()
abstract class POSLinkAndroidApi {
  bool checkBluetoothEnable();
  bool startSearchBluetooth();
  bool stopSearchBluetooth();
  List<BluetoothDevice> getBluetoothDeviceList();
  @async
  RawResponse? sendRawCommand(String command);
}
